home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 11
/
FM Towns Free Software Collection 11.iso
/
t_os
/
shell
/
vl
/
src
/
gui.c
next >
Wrap
C/C++ Source or Header
|
1995-05-07
|
3KB
|
115 lines
#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>
extern int iconDialogID ;
extern int MJ_BASEOBJ ;
extern int dummyDButtonID ;
extern int iconQuitIconID ;
extern int iconQuitFunc() ;
extern int barIconID ;
extern int minIconID ;
extern int maxIconID ;
#define ALIGN 4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
/* MMI_init 用データ */
/* ヘッダ */
MMIINIT initDataGUI = { "MmiInit", 6, 0 } ;
/* iconDialogID */
static MMIPACKET d001 = { &iconDialogID,
&MJ_BASEOBJ,
&MJ_DIALOGL40,
OFFSET(DIALOGL40),
MS_NONE
} ;
static DIALOGL40 d001d = { MS_BTLEFTL40 | MS_EVMOSONL40,
276, 225, 364, 255, 8, 0, 8,
MS_PANELL40 | MS_BFRAMEL40 | MS_FRAMEL40,
NULL, 0, 0
} ;
/* dummyDButtonID */
static MMIPACKET d002 = { &dummyDButtonID,
&iconDialogID,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d002d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_DSPONLYL40,
293, 230, 359, 250, 8, 8,15,
MS_DFRAMEL40 | MS_FRAMEL40,
0,
0x0000
} ;
/* iconQuitIconID */
static MMIPACKET d003 = { &iconQuitIconID,
&iconDialogID,
&MJ_ICONL40,
OFFSET(ICONL40),
MS_NONE
} ;
static ICONL40 d003d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_CENTERL40,
281, 230, 291, 240, 8, 9, 2,
MS_UFRAMEL40 | MS_FRAMEL40,
iconQuitFunc,
0x801d, 512
} ;
/* barIconID */
static MMIPACKET d004 = { &barIconID,
&iconDialogID,
&MJ_ICONL40,
OFFSET(ICONL40),
MS_NONE
} ;
static ICONL40 d004d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_DSPONLYL40,
295, 241, 357, 248, 8,12, 5,
MS_NONEL40,
0,
0x0000, 513
} ;
/* minIconID */
static MMIPACKET d005 = { &minIconID,
&iconDialogID,
&MJ_ICONL40,
OFFSET(ICONL40),
MS_NONE
} ;
static ICONL40 d005d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_DSPONLYL40,
295, 232, 310, 239, 8, 8,15,
MS_INVERTL40,
0,
0x0000, 529
} ;
/* maxIconID */
static MMIPACKET d006 = { &maxIconID,
&iconDialogID,
&MJ_ICONL40,
0,
MS_NONE
} ;
static ICONL40 d006d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_DSPONLYL40,
342, 232, 357, 239, 8, 8,15,
MS_INVERTL40,
0,
0x0000, 530
} ;